﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AuthenticationDemo.Models.Enum
{
    public enum ResponseCode
    {
        /// <summary>
        /// 响应成功
        /// </summary>
        OK = 200,
        /// <summary>
        /// 身份认证失败
        /// </summary>
        Unauthorized = 401,
        /// <summary>
        /// 权限不足
        /// </summary>
        Forbidden = 403,
        /// <summary>
        /// 未知异常
        /// </summary>
        OtherrError = 999,
        /// <summary>
        /// 缺失必要参数、参数无效、参数异常、查询无数据
        /// </summary>
        BadRequest = 1001,
        /// 操作（新增/更新/刪除）数据异常
        /// </summary>
        OperationError = 1002,
        /// <summary>
        /// 数据已存在
        /// </summary>
        DataExist = 1003,
        /// <summary>
        /// 第三方接口 请求异常、响应异常
        /// </summary>
        InterfaceError = 1004,
        /// <summary>
        /// Try-Catch or Throw 抛出异常
        /// </summary>
        ServerError = 1005,
    }
}
